#ifndef _SRAM_H_
#define _SRAM_H_

#include "common.h"

#define	SRAM_BEGIN		0x0000
#define SRAM_END			0x7fff

void sram_read_prepare();
u8 sram_read(u16 addr);
void sram_read_buf(u16 addr, u8 *buf, u16 len);

void sram_write_prepare();
void sram_write(u16 addr, u8 value);
void sram_write_buf(u16 addr, u8 *buf, u16 len);

#endif